<?php 
class menu extends CWidget
{
	public $_active = '';
	public $_url = NULL;
	public function init()
	{
		$dir = dirname(__FILE__).DIRECTORY_SEPARATOR.'assets';
		$this->_url = Yii::app()->getAssetManager()->publish($dir);
		$cs = Yii::app()->getClientScript();
		$cs->registerCssFile("{$this->_url}/css/menu.css");
		$cs->registerScriptFile("{$this->_url}/js/superfish.js");
		$cs->registerScriptFile("{$this->_url}/js/script.js");
		parent::init();
		parent::init();
	}
	public function run()
	{
		$this->render('default', array('active'=>$this->_active));
	}
}
?>